package com.kgc.xs.remote;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.xs.pojo.SalesReturn;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

public interface SalesReturnRemote {


    @RequestMapping("/selectSalesReturnByPage")
    @ResponseBody
    ResponseMsg selectSalesReturnByPage(@RequestBody Map<String, Object> map);

    @RequestMapping("/insertSalesReturn")
    @ResponseBody
    ResponseMsg insertSalesReturn(@RequestBody Map<String, Object> map);

    @RequestMapping("/updateSalesReturn")
    @ResponseBody
    ResponseMsg updateSalesReturn(@RequestBody Map<String, Object> map);

    @RequestMapping("/deleteSalesReturn")
    @ResponseBody
    ResponseMsg deleteSalesReturn(@RequestBody Map<String, Object> map);

    @RequestMapping("/selectSalesReturnDetail")
    @ResponseBody
    ResponseMsg selectSalesReturnDetail(@RequestBody Map<String, Object> map);

    @RequestMapping("/checkSalesReturn")
    @ResponseBody
    ResponseMsg checkSalesReturn(@RequestBody Map<String, Object> map);

    @RequestMapping("/selectSalesReturnByCode")
    @ResponseBody
    ResponseMsg selectSalesReturnByCode(@RequestParam("docCode") String docCode);

    @RequestMapping("/selectSalesReturnDetailByCode")
    @ResponseBody
    ResponseMsg selectSalesReturnDetailByCode(@RequestParam("xsReturnCode") String xsReturnCode);


}
